<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<%@ include file="/common/include/title.jsp" %>
		<title>查看管理员 - 管理员管理 - 用户中心</title>
		<meta name="keywords" content="查看管理员 - 管理员管理 - 用户中心">
		<meta name="description" content="查看管理员 - 管理员管理 - 用户中心">
		<!--请在下方写此页面业务相关的脚本-->
		<script type="text/javascript" src="${rootPath }/common/resouce/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
		<script type="text/javascript" src="${rootPath }/common/resouce/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
		<script type="text/javascript" src="${rootPath }/common/resouce/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>
	</head>
	<body>
		<article class="page-container">
			<form class="form form-horizontal" id="form-admin-add"  
				action="${rootPath }/back/AdminsBackServlet?method=adminsUpdateSubmit" method="post">
				<!-- 在更新提交的时候,加上id(隐藏域) -->
				<input type="hidden" name="id" value="${requestScope.admins.id }">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">角色：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${requestScope.admins.role.name }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>邮箱：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						${requestScope.admins.email }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>真实姓名：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						${requestScope.admins.trueName }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>性别：
					</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${requestScope.admins.sexStr }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>手机：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						${requestScope.admins.phone }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>QQ：
					</label>
					<div class="formControls col-xs-8 col-sm-9">
						${requestScope.admins.qq }
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>状态：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${requestScope.admins.statusStr}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>登录次数：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${requestScope.admins.loginCount}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>上次登录IP：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${requestScope.admins.lastLoginIp}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>登录失败次数：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						${requestScope.admins.loginFailedCount}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>登录失败时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<fmt:formatDate value="${requestScope.admins.loginFailedTime }" pattern="yy-MM-dd HH:mm:ss"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>创建时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<fmt:formatDate value="${requestScope.admins.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>更新时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<fmt:formatDate value="${requestScope.admins.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">
						<span class="c-red">*</span>上次登录时间：</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<fmt:formatDate value="${requestScope.admins.lastloginTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3"> <span
						class="c-red">*</span>头像：
					</label>
					<div class="formControls col-xs-8 col-sm-9 skin-minimal">
						<c:choose>
							<c:when test="${requestScope.admins.photoPath == null || requestScope.admins.photoPath == ''}">
								<img alt="" src="${rootPath }/img/no_pic.gif" width="100"
									height="100">
							</c:when>
							<c:otherwise>
								<img alt="" src="${rootPath }${requestScope.admins.photoPath }"
									width="100" height="100">
							</c:otherwise>
						</c:choose>
					</div>
				</div>
			</form>
		</article>
	</body>
</html>